{if $smarty.get.print != 1}
  {include file="header.tpl"}
{else}
  {include file="headerPrint.tpl"}
{/if}
<form name="form1" action="" method="post">
<div class="contentDiv">
	<table align="center" cellspacing="0" cellpadding="2" style="border:1px solid;">
{if $smarty.get.print != 1}
		<tr>
			<th><font size="3" color="red">Bullion</font></th>
			<th align="right"><font size="3" color="red">{$l_fine}</font></th>
			<th align="right"><font size="3" color="red">{$l_amount}</font></th>
		</tr>
{else}
<tr>
			<th>Bullion</th>
			<th align="right">{$l_fine}</th>
			<th align="right">{$l_amount}</th>
		</tr>
{/if}
		<tr>
	  	<td colspan="3"><hr/></td>
	  </tr>
		{section name="sec" loop=$bullionParty|@count}
		  <tr>
		  	<td>{$bullionParty[sec].name}</td>
		  	{if $bullionParty[sec].partyFine > 0}
		  	<td align="right"><font color="green">
		  	 {$bullionParty[sec].partyFine|string_format:"%.0f"}
		   </td>
		   {else}
		   <td align="right">
		   	<font color="red">
		  	 {$bullionParty[sec].partyFine|string_format:"%.0f"}
		   </td>
		   {/if}
		   {if $bullionParty[sec].partyAmount > 0}
		   <td align="right"><font color="green"><b>{$bullionParty[sec].partyAmount|string_format:"%.0f"}</b></font>
		    </td>
		   {else}
		   <td align="right"><font color="red"><b>{$bullionParty[sec].partyAmount|string_format:"%.0f"}</b></font></td>
		   {/if}
		  </tr>
		  <tr>
		  	<td colspan="3"><hr/></td>
		  </tr>
		{/section}
		<tr>
			<th align="right">{$l_total}</th>
			{if $fineTotal > 0}
			<th align="right"><font color="green"><b>
			{$fineTotal|string_format:"%.0f"}</b></font></th>
			{else}
			<th align="right"><font color="red"><b>
			{$fineTotal|string_format:"%.0f"}</b></font></th>
			{/if}
			{if $amountTotal > 0}
			<th align="right"><font color="green"><b>{$amountTotal|string_format:"%.0f"}</b></font></th>
			{else}
			<th align="right"><font color="red"><b>{$amountTotal|string_format:"%.0f"}</b></font></th>
			{/if}
			</tr>
				{if $smarty.get.print != 1}
    	<div align="right"><a href="bullionSummary.php?print=1"><font size="4" color="red">Summary Print</font></a></div>
    {else}
    &nbsp;
   {/if}
  </table>
</div>
{if $smarty.get.print != 1}
  {include file="footer.tpl"}
{/if}